home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19980901-19981211 / 000296_news@newsmaster….columbia.edu _Thu Nov 12 09:30:57 1998.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id JAA20466
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Thu, 12 Nov 1998 09:30:56 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id JAA28966
  7.     for kermit.misc@watsun; Thu, 12 Nov 1998 09:30:54 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: 3270 terminal key emuation script needed
  12. Date: 12 Nov 1998 14:30:47 GMT
  13. Organization: Columbia University
  14. Lines: 38
  15. Message-ID: <72eren$kkj$1@apakabar.cc.columbia.edu>
  16. References: <72dcpa$giu$1@news-2.news.gte.net>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:9502
  19.  
  20. In article <72dcpa$giu$1@news-2.news.gte.net>,
  21. Li-Jen Chang  <lchang@gte.net> wrote:
  22. : I need a tn3270 key emulation. Does any one have a setting script for
  23. : C-kermit?
  24. >From the Kermit FAQ:
  25.  
  26.   http://www.columbia.edu/kermit/faq.html
  27.   ftp://kermit.columbia.edu/kermit/faq.txt
  28.  
  29. 8 Where Is the Key Map for 3270 Emulation?
  30.  
  31. Real 3270 terminals have all sorts of keys that regular ASCII terminals (and
  32. PCs and Macintoshes and UNIX workstations, etc) do not have.
  33.  
  34. A big part of the job of a 3270 protocol converter is to convert between ASCII
  35. keystrokes (including escape sequences) and 3270 keys such as PA1 through PA3
  36. and PF1 through PF24.
  37.  
  38. The administrator of the 3270 protocol converter creates the mapping.  So in
  39. order to make a 3270 key map for Kermit, you first have to find out what the
  40. mapping in the protocol converter is, and then assign the ASCII values
  41. (characters or sequences) that correspond to each 3270 key to the desired PC
  42. (or Mac, etc) key.
  43.  
  44. It is the responsibility of each site administrator to document the key
  45. mappings used by its protocol converters.  Once you know the ASCII values that
  46. correspond to each 3270 key, then it's easy to create Kermit key bindings.
  47.  
  48. For example, suppose the 3270 "cursor left" function (left arrow) is mapped to
  49. ASCII Ctrl-B (ASCII character 2).  Then in MS-DOS Kermit you would:
  50.  
  51.   SET KEY \4427 \2
  52.  
  53. where \4427 is the scan code of the PC's (gray) left arrow key, and \2 is the
  54. code for the ASCII value of the Ctrl-B character.
  55.  
  56. - Frank